﻿using Nop.Web.Framework;
using System;
using System.Collections.Generic;
using System.Web.Mvc;

namespace Logistics.Web.Models.Order
{
    public class ShippingOptionModel
    {
        public string AdditionalInstruction { get; set; }
        public bool? NoSignature { get; set; }
        public bool HasInsurance { get; set; }
        public bool CanSetSignatureRequirement { get; set; }
        public decimal InsuranceValue { get; set; }
        public string OrderByInfo { get; set; }
        public bool HasPickupDate { get; set; }
        public bool IsGiftCardApplied { get; set; }
        public string GiftCardCode { get; set; }
        public DateTime? PickupDate { get; set; }
        public int? PickupTimeWindowId { get; set; }
        public List<string> AvaliablePickupDates { get; set; }
        public List<string> AvaliablePickupTimeWindows { get; set; }
        public PickupDateTimeWindow[,] AvaliablePickupDateTimeWindows { get; set; }

        public class PickupDateTimeWindow
        {
            public DateTime PickupDate { get; set; }
            public int PickupTimeWindow { get; set; }
            public bool CanSelect { get; set; }
            public bool Selected { get; set; }
        }
    }
}